package entity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.learn.Mask;
import com.learn.MaskStrategy;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author: hbliy
 * @date: 2025/2/14 12:21
 */
@Data
public class Address {
    private Integer id;

    private String address;

    private String address2;

    private String district;

    private String location;

    private String detail;

    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime last_update;
}
